//
//  UIViewController+MMGNavigationBar.m
//  DollsVending
//
//  Created by Don on 2017/9/27.
//  Copyright © 2017年 Memego, Inc. All rights reserved.
//

#import "UIViewController+MMGNavigationBar.h"
#import "UINavigationController+FDFullscreenPopGesture.h"
#import "UIImage+Color2Image.h"
#import "UIImage+CacheViaName.h"
#import "UIBarButtonItem+BlocksKit.h"
#import <objc/runtime.h>

@interface UIViewController ()
@property (nonatomic, assign) CGFloat tabBarHeight;

@end
@implementation UIViewController (MMGNavigationBar)

/**
 *  隐藏导航栏
 */
- (void)mmg_setNavigationBarHidden {
    self.fd_prefersNavigationBarHidden = YES;
}

//
- (CGFloat)tabBarHeight {
    return CGRectGetHeight(self.tabBarController.tabBar.frame);
}
@end
